﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Think.Lenovo.Com.Models.NewsModel;
using Think.Lenovo.Com.DataAccess.NewsInfo;

namespace Think.Lenovo.Com.home
{
    public partial class zhaomu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                #region//Step 1. 招募成功案例,文章类别id 为 8
                {
                    NewsInfo news = new NewsInfo();
                    LinkedList<NewsModel> list = news.GetViewNews(1, 3, " types=8 ", " ReleaseDate desc");
                    this.NewsList.DataSource = list;
                    this.NewsList.DataBind();
                }
                #endregion

                #region//Step 2. 常见问题
                {
                    NewsInfo news = new NewsInfo();
                    LinkedList<NewsModel> list = news.GetViewNews(1, 3, " types=7 ", " ReleaseDate desc");
                    this.QA.DataSource = list;
                    this.QA.DataBind();
                }
                #endregion
            }
            catch (Exception ex)
            {
 
            }
        }
    }
}